<template>
  <div>
    <button @click="isShowDemo=!isShowDemo">隐藏或显示</button>

    <Demo v-if="isShowDemo"></Demo>
  </div>
</template>

<script>
import Demo from "./components/Demo";
import { ref} from "vue";
export default {
  name: "App",
  components: {
    Demo
  },
  setup() {
    let isShowDemo = ref(true);
    return{
      isShowDemo
    }
  },
 
};
</script>

<style>
</style>